package com.mall.serviceImpl;

import com.mall.bean.SysUser;
import com.mall.bean.SystemRole;
import com.mall.bean.SystemUser;
import com.mall.mapper.SystemUserMapper;
import com.mall.service.SystemRoleService;
import com.mall.service.SystemUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @PageName com.mall.serviceImpl
 * @Description 系统用户service实现
 * @Author 何全裕
 * @Create 2017-09-06 22:24
 * @Version 1.0
 **/
@Service("sysUsersService")
public class SystemUserServiceImpl implements SystemUserService {
    @Autowired
    private SystemUserMapper systemUserMapper;


    public List<SystemUser> getSystemUserList() {
        return systemUserMapper.getSystemUserList();
    }

    public void insertUser(SystemUser user) {
        systemUserMapper.insertUser(user);
    }

    public void deleteAllUser(String[] ids) {
        systemUserMapper.deleteAllUser(ids);
    }

    public void deleteUser(String id) {
        systemUserMapper.deleteUser(id);
    }

    public SystemUser getSystemUserById(String id) {
        return systemUserMapper.getSystemUserById(id);
    }

    public void updateSystemUser(SystemUser user) {
        systemUserMapper.updateSystemUser(user);
    }
}
